package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.soms.dto.CaClassMemberDto;
import com.dingreading.cloud.soms.entity.CaClassMember;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CaClassMemberService extends IService<CaClassMember> {

    List<CaClassMemberDto> getClassMemberList(String corpUid, String storeUid, Long classId, String projectUid, String keyword);

    List<String> getClassMemberUid(String storeUid, Long classId);

    int dropMember(String storeUid, Long classId, String memberUid);

    /**
     * 获取社团的会员数量
     */
    long getClassMemberNum(String storeUid, Long classId);

    String getByClassIdAndMemberUid(String storeUid, Long classId, String memberUid);

    boolean haveMember(String storeUid, Long classId, String memberUid);

    // 查询会员是否在未结业的社团里
    List<String> getClassNamesByMemberUid(String storeUid, String memberUid);

}
